home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / intl / nsIStringBundleOverride.h < prev   
C/C++ Source or Header  |  2006-05-08  |  4KB  |  111 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIStringBundleOverride.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIStringBundleOverride_h__
  6. #define __gen_nsIStringBundleOverride_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISimpleEnumerator; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIStringBundleOverride */
  21. #define NS_ISTRINGBUNDLEOVERRIDE_IID_STR "965eb278-5678-456b-82a7-20a0c86a803c"
  22.  
  23. #define NS_ISTRINGBUNDLEOVERRIDE_IID \
  24.   {0x965eb278, 0x5678, 0x456b, \
  25.     { 0x82, 0xa7, 0x20, 0xa0, 0xc8, 0x6a, 0x80, 0x3c }}
  26.  
  27. class NS_NO_VTABLE nsIStringBundleOverride : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISTRINGBUNDLEOVERRIDE_IID)
  31.  
  32.   /**
  33.    * get the override value for a particular key in a particular
  34.    * string bundle
  35.    */
  36.   /* AString getStringFromName (in AUTF8String url, in ACString key); */
  37.   NS_IMETHOD GetStringFromName(const nsACString & url, const nsACString & key, nsAString & _retval) = 0;
  38.  
  39.   /**
  40.    * get all override keys for a given string bundle
  41.    */
  42.   /* nsISimpleEnumerator enumerateKeysInBundle (in AUTF8String url); */
  43.   NS_IMETHOD EnumerateKeysInBundle(const nsACString & url, nsISimpleEnumerator **_retval) = 0;
  44.  
  45. };
  46.  
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSISTRINGBUNDLEOVERRIDE \
  49.   NS_IMETHOD GetStringFromName(const nsACString & url, const nsACString & key, nsAString & _retval); \
  50.   NS_IMETHOD EnumerateKeysInBundle(const nsACString & url, nsISimpleEnumerator **_retval); 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  53. #define NS_FORWARD_NSISTRINGBUNDLEOVERRIDE(_to) \
  54.   NS_IMETHOD GetStringFromName(const nsACString & url, const nsACString & key, nsAString & _retval) { return _to GetStringFromName(url, key, _retval); } \
  55.   NS_IMETHOD EnumerateKeysInBundle(const nsACString & url, nsISimpleEnumerator **_retval) { return _to EnumerateKeysInBundle(url, _retval); } 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  58. #define NS_FORWARD_SAFE_NSISTRINGBUNDLEOVERRIDE(_to) \
  59.   NS_IMETHOD GetStringFromName(const nsACString & url, const nsACString & key, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringFromName(url, key, _retval); } \
  60.   NS_IMETHOD EnumerateKeysInBundle(const nsACString & url, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateKeysInBundle(url, _retval); } 
  61.  
  62. #if 0
  63. /* Use the code below as a template for the implementation class for this interface. */
  64.  
  65. /* Header file */
  66. class nsStringBundleOverride : public nsIStringBundleOverride
  67. {
  68. public:
  69.   NS_DECL_ISUPPORTS
  70.   NS_DECL_NSISTRINGBUNDLEOVERRIDE
  71.  
  72.   nsStringBundleOverride();
  73.  
  74. private:
  75.   ~nsStringBundleOverride();
  76.  
  77. protected:
  78.   /* additional members */
  79. };
  80.  
  81. /* Implementation file */
  82. NS_IMPL_ISUPPORTS1(nsStringBundleOverride, nsIStringBundleOverride)
  83.  
  84. nsStringBundleOverride::nsStringBundleOverride()
  85. {
  86.   /* member initializers and constructor code */
  87. }
  88.  
  89. nsStringBundleOverride::~nsStringBundleOverride()
  90. {
  91.   /* destructor code */
  92. }
  93.  
  94. /* AString getStringFromName (in AUTF8String url, in ACString key); */
  95. NS_IMETHODIMP nsStringBundleOverride::GetStringFromName(const nsACString & url, const nsACString & key, nsAString & _retval)
  96. {
  97.     return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99.  
  100. /* nsISimpleEnumerator enumerateKeysInBundle (in AUTF8String url); */
  101. NS_IMETHODIMP nsStringBundleOverride::EnumerateKeysInBundle(const nsACString & url, nsISimpleEnumerator **_retval)
  102. {
  103.     return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105.  
  106. /* End of implementation class template. */
  107. #endif
  108.  
  109.  
  110. #endif /* __gen_nsIStringBundleOverride_h__ */
  111.